#!/bin/bash
# Outlook 自动注册工具启动脚本 (macOS/Linux)

echo "=================================="
echo "  Outlook 自动注册工具"
echo "=================================="
echo ""

# 检查 Python
if ! command -v python &> /dev/null; then
    echo "❌ 错误: 未找到 Python"
    echo "请先安装 Python 3.8+"
    exit 1
fi

# 检查依赖
echo "📦 检查依赖..."
python -c "import PyQt6" 2>/dev/null
if [ $? -ne 0 ]; then
    echo "⚠️  缺少依赖，正在安装..."
    pip install -r requirements.txt
fi

# 启动应用
echo "🚀 启动应用..."
python main.py

echo ""
echo "👋 应用已关闭"

